Implementing Forms Authentication in
ASP.NET The Microsoft ASP.NET framework
provides a rich collection of tools. The trick is
figuring out how they work together to customize your
authentication system.
ASP.NET allows four different types of
authentication: Forms, Windows, Passport, and None. When
you implement forms authentication, you can protect
every page within a specified directory. This
allows you to grant access to authenticated users only.
You specify the type of authentication an application
uses in the web.config file (contained in the code
download).
The web.config file (see Listing 1) contains a nested hierarchy
of XML tags and subtags with attributes
that specify the configuration settings.
The most relevant set of elements are
the following: |